package com.yunxin.core.infra.persistence.mapper.order;

import com.yunxin.core.application.admin.team.Team;
import com.yunxin.core.infra.persistence.entity.order.OrderAllocationBelongToAccountDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zero°
 * @since 2023-06-07
 */
public interface OrderAllocationBelongToAccountMapper {
    /**
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated
     */
    int insert(OrderAllocationBelongToAccountDO row);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(OrderAllocationBelongToAccountDO row);

    /**
     *
     * @mbg.generated
     */
    OrderAllocationBelongToAccountDO selectByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(OrderAllocationBelongToAccountDO row);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(OrderAllocationBelongToAccountDO row);

    /**
     * 查询已分配团队信息
     * @param allocationOrderId
     * @return
     */
    List<Team> selectTeamName(@Param("allocationOrderId") Long allocationOrderId);

    /**
     * 根据已有id查询未分配团队
     * @param teamIds
     * @return
     */
    List<Team> selecteamNameNo(@Param("teamIds") List<Integer> teamIds);

    /**
     * 查询所有团队
     * @return
     */
    List<Team> selectAllTeamName();
}